/*
 * ThachLN
 * 8/2010
 */
package corewa;

import java.util.HashMap;
import java.util.Map;

import screen.Screen;

/**
 * Core Web Application. This class include all screen of application.
 * <b>viewScreen</b> this is view screen <b>editScreen</b> this is edit screen
 * <b>helpScreen</b> this is help screen All these screen will action by user so
 * that we must implement those action <b>screens</b> this is a map contain all
 * screen.
 */
public class CoreWa {
	String viewScreen;
	String editScreen;
	String helpScreen;
	private Map<String, Screen> screens = new HashMap<String, Screen>();

	public String getViewScreen() {
		return viewScreen;
	}

	public void setViewScreen(String viewScreen) {
		this.viewScreen = viewScreen;
	}

	public String getEditScreen() {
		return editScreen;
	}

	public void setEditScreen(String editScreen) {
		this.editScreen = editScreen;
	}

	public String getHelpScreen() {
		return helpScreen;
	}

	public void setHelpScreen(String helpScreen) {
		this.helpScreen = helpScreen;
	}

	public Map<String, Screen> getScreens() {
		return screens;
	}

	public void setScreens(Map<String, Screen> screens) {
		this.screens = screens;
	}

	public void addScreen(Screen scr) {
		screens.put(scr.getId(), scr);
	}

	public Screen getScreen(String id) {
		return screens.get(id);
	}
}
